<?php
session_start();
require dirname(__FILE__) . "/../classes/userClass.php";
require dirname(__FILE__) . "/../classes/userDao.php";
require dirname(__FILE__) . "/../classes/connectionFactoryClass.php";


$user= new userClass();
$c = new ConnectionFactory();
$db = $c->getConnection();
$userDao = new userDao($db);

//$nusuario='rafael';
 //$nsenha='123';

//echo'<br>Pesquisando por:'. $usuario;
//echo'<br>Pesquisando por:'.  $senha;
$resultado=$userDao->getUserByUser($usuario, $senha);







?>
